<template>
  <el-avatar v-bind="$attrs" :size="size"> </el-avatar>
</template>

<script lang="ts">
import { defineComponent } from 'vue';

/**
 * 头像组件封装
 * @Author yuanyexu
 * @Date 2021-08-03
 */
export default defineComponent({
  name: 'Avatar',
  props: {
    /**
     * 头像尺寸
     * @type {number|string}
     */
    size: {
      type: [Number, String],
      default: 'large',
    },
  },
});
</script>
